package org.infodavid.common.ejb.components;


import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.hibernate.annotations.Index;

import org.infodavid.common.impl.model.security.SecuredObjectIdentifierImpl;

/**
 * The Class SecuredObjectIdentifierComponent.
 */
@Embeddable
public class SecuredObjectIdentifierComponent extends SecuredObjectIdentifierImpl {

	/** serialVersionUID. */
	private static final long serialVersionUID = 584923281312002875L;

	/**
	 * The Constructor.
	 * @throws Exception the exception
	 */
	protected SecuredObjectIdentifierComponent() throws Exception {
		super();
	}

	/* (non-Javadoc)
	 * @see org.infodavid.common.impl.model.security.SecuredObjectIdentifierImpl#getIdentifier()
	 */
	@Override
	@Column(name = IDENTIFIER, nullable = true, updatable = false)
	@Index(name = "IDX_ACE_IDENTIFIER")
	public String getIdentifier() {
		return super.getIdentifier();
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.impl.model.security.SecuredObjectIdentifierImpl#getType()
	 */
	@Override
	@Column(name = TYPE, nullable = false, length = 300, updatable = false)
	@Index(name = "IDX_ACE_TYPE")
	public String getType() {
		return super.getType();
	}
}
